<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>VUE Template</title>
    <script type="text/javascript" src="../js/vue.js"></script>
</head>
<body>
    <div id="root">
        <div class="test"
        :class="{ active:isActive ,green:isGreen}" style="height: 200px;width: 200px;text-align: center;line-height: 200px;">hi vue</div>
        <div v-bind:style="{color:mycolor,fontSize:mysize}">hi vue</div>
    </div>
</body>
    <script type="text/javascript">
        
        const vm = new Vue({
            el:'#root',
            data:function(){
                return{
                    name:'trentwu',
                    isActive:true,
                    isGreen:true,
                    mycolor:'red',
                    mysize:'50px'
                }
            },
            methods:{
              showInfo(event){
                  
              }
          }
        })
    </script>
    <style>
        .active{background-color: red;}
        .test{font-size: 30px;}
        .green{color: green;}
    </style>
</html>